//
//  ZCInvolvedDeatailsCell.m
//  zctx
//
//  Created by apple on 15/10/12.
//  Copyright © 2015年 sanliang. All rights reserved.
//

#import "ZCInvolvedDeatailsCell.h"

@implementation ZCInvolvedDeatailsCell

- (void)awakeFromNib {
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.userNameLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];
    self.timeLable.textColor = [UIColor colorWithHexString:@"#b2b2b2"];
    self.contentLable.textColor = [UIColor colorWithHexString:@"#000000"];
}

-(void)setModel:(ZCInvolvedDetailsModelContent *)model{
    
    _model = model;
    self.userNameLable.text = model.username;
    int timeInt =[model.btime intValue];
    self.timeLable.text = [NSString stringWithFormat:@"%@",stringDataWithTimeInterval(timeInt)];
    if (model.avatar.length>0) {
        [self.iconImgView sd_setImageWithURL:[NSURL URLWithString:model.avatar] placeholderImage:[UIImage imageNamed:@"projectdetail_icon"]];
    }else{
        self.iconImgView.image = [UIImage imageNamed:@"projectdetail_icon"];
    }
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
